package com.lai.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lai.common.utils.PageUtils;
import com.lai.gulimall.product.entity.ProductAttrValueEntity;
import com.lai.gulimall.product.vo.BaseAttrs;

import java.util.List;
import java.util.Map;

/**
 * spu属性值
 *
 * @author laiciqi
 * @email 602469238@qq.com
 * @date 2021-11-06 20:30:09
 */
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存spu的规格参数;
     * @param id
     * @param baseAttrs
     */
    void saveBaseAttrs(Long id, List<BaseAttrs> baseAttrs);

    List<ProductAttrValueEntity> baseAttrListForSpu(Long spuId);

    void updateSpuAttr(Long spuId, List<ProductAttrValueEntity> entities);
}

